package com.eusoft.book_manage.enums;

import lombok.Data;

/**
 * 响应码+响应消息（统一管理） 枚举
 * @author eusoft
 * @date 2021/10/20 9:38
 */
public enum ResultEnum {
    SUCCESS(200,"成功"),
    UNKONW_ERROR(-1,"未知错误")

    ;
    private Integer code;
    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
